package com.example.demo.controller;/**
 * ClassName: TimeQuantumController
 * Package: com.example.demo.controller
 * Description:
 *
 * @Author 理理
 * @Create 2024/11/16 19:22
 * @Version 1.0
 */

import com.example.demo.entity.Repair;
import com.example.demo.entity.TimeQuantum;
import com.example.demo.mapper.TimeQuantumMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 *
 *@title: TimeQuantumController
 *@Author: Tangerine
 *@Date: 2024/11/16 19:22
 *@version 1.0
 */
@RestController
@RequestMapping("/time")
public class TimeQuantumController {
    @Autowired
    private TimeQuantumMapper timequantumMapper;
    @GetMapping("/")
    public List<TimeQuantum> index(){
        return timequantumMapper.findAll();
    }

}
